﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.SqlClient;
using System.Configuration;

/// <summary>
/// Summary description for DatabaseInteraction
/// </summary>
public class DatabaseInteraction
{
    private static string connection = "Data Source=LAB1_SERVER\\SQL2008;Initial Catalog=Northwind;User ID=sa;Password=fat123456";


    public static SqlConnection getConnection()
    {
        SqlConnection cnn;
        try
        {
            cnn = new SqlConnection(connection);
        }
        catch (Exception e)
        {
            Console.WriteLine(e.Message);
            return null;
        }

        return cnn;
    }

    
}